package com.extremelylargepackage.entity;

public class AiAimedAttack implements AiAttackComponent
{
	private Enemy _me;
	
	@Override
	public void peformAttack(long time) 
	{
		if(_me._weapon.canFire())
		{
			Player p = _me._player;
			_me._weapon.fire(p._locX - _me._locX, p._locY - _me._locY);
		}
	}
	
	@Override
	public void setSelf(Enemy me) 
	{
		_me = me;
	}
	
	@Override
	public Object clone()
	{
		return new AiAimedAttack();
	}

}
